<?php
/*
Autor: Marek Křivan
(c) 2009 
*/
if(intval($_SESSION['rank']) < 2){
	exit(WRONG_PERMISSIONS);
}
if(isset($q[4])) {
                if((ereg("(^[+]?[0-9.]{7,16}$)", $q[4])) && ($_SESSION['rank'] > 2)) {
                        echo "<meta http-equiv=\"refresh\" content=\"1;".$GLOBALS['url']."/administrator/index.php?p=components&name=forum&a=ban_ip&ban=".$q[4]."\" />";
                } else {
                        $seo = ($GLOBALS['seo']) ? '' : 'index.php?q=';
                        echo "<meta http-equiv=\"refresh\" content=\"1;".$GLOBALS['url'].$seo."forum/dues/".$q[2]."/".$q[3]."\" />";
                }

        } 
?>
